import request from '@/utils/request'

// 查询销售发货退货明细报表列表
export function listSaleDeliveryDetailReport(query) {
  return request({
    url: '/saleReport/saleDeliveryDetailReport/list',
    method: 'get',
    params: query
  })
}

// 查询销售发货退货明细报表详细
export function getSaleDeliveryDetailReport(id) {
  return request({
    url: '/saleReport/saleDeliveryDetailReport/' + id,
    method: 'get'
  })
}

// 新增销售发货退货明细报表
export function addSaleDeliveryDetailReport(data) {
  return request({
    url: '/saleReport/saleDeliveryDetailReport',
    method: 'post',
    data: data
  })
}

// 修改销售发货退货明细报表
export function updateSaleDeliveryDetailReport(data) {
  return request({
    url: '/saleReport/saleDeliveryDetailReport',
    method: 'put',
    data: data
  })
}

// 删除销售发货退货明细报表
export function delSaleDeliveryDetailReport(id) {
  return request({
    url: '/saleReport/saleDeliveryDetailReport/' + id,
    method: 'delete'
  })
}

// 导出销售发货退货明细报表
export function exportSaleDeliveryDetailReport(query) {
  return request({
    url: '/saleReport/saleDeliveryDetailReport/export',
    method: 'get',
    params: query
  })
}